import React from 'react'
import {Button} from "react-vant"
import axios from "axios"
type Props = {}

const DevelopmentTools = (props: Props) => {
  const gotoPay = () =>{
    axios.get("/alipay/pay").then(res=>{
      console.log(res);
      window.location.href = res.data.result
    })
  }
  return (
    <div>DevelopmentTools
      <Button onClick={gotoPay}>支付</Button>
    </div>
  )
}

export default DevelopmentTools